package jnpf.file.fallback;

import cn.xuyanwu.spring.file.storage.FileInfo;
import jnpf.file.FileUploadApi;
import jnpf.model.FileListVO;
import jnpf.model.MinioCopyObjectModel;
import jnpf.model.upload.UploadFileModel;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

import java.util.ArrayList;
import java.util.List;


/**
 * @author JNPF开发平台组
 * @version V3.1.0
 * @copyright 引迈信息技术有限公司（https://www.jnpfsoft.com）
 * @date 2021-07-23
 */
@Component
public class FileUploadApiFallback implements FileUploadApi {
    @Override
    public FileInfo uploadFile(MultipartFile multipartFile, String folderName, String fileName) {
        return null;
    }

    @Override
    public FileInfo uploadFile(MultipartFile multipartFile, String folderName, String type, String fileName) {
        return null;
    }


    @Override
    public void copyObject(MinioCopyObjectModel model) {

    }

    @Override
    public byte[] getByte(String fileName, String folderName) {
        return new byte[0];
    }

    @Override
    public List<FileListVO> getFileList(String folderName) {
        return new ArrayList();
    }

    @Override
    public void downToLocal(UploadFileModel model) {

    }

    @Override
    public void downFile(UploadFileModel model) {

    }

    @Override
    public byte[] downFileByte(UploadFileModel model) {
        return new byte[0];
    }

    @Override
    public FileInfo getFile(String fileId) {
        return null;
    }

}
